package com.sina.mysql.exception;

import com.sina.mysql.utils.ResultCode;

/**
 * @ClassName RuntimeBusinessException
 * @Description:
 * @Author 段浩杰
 * @Date 2018/8/22 17:43
 * @Version 1.0
 */
public class RuntimeBusinessException extends RuntimeException {


    private static final long serialVersionUID = 5711069979041381432L;


    private final ResultCode resultCode;

    public RuntimeBusinessException(ResultCode resultCode, String message) {
        super( message );
        this.resultCode = resultCode;
    }

    public RuntimeBusinessException(ResultCode resultCode, String message, Throwable cause) {
        super( message, cause );
        this.resultCode = resultCode;
    }

    public RuntimeBusinessException(ResultCode resultCode, Throwable cause) {
        super( cause );
        this.resultCode = resultCode;
    }

}